package vanjalee.bs.com.control;

import java.util.List;

import vanjalee.bs.com.control.model.Part;
import vanjalee.bs.com.control.model.PartType;
import vanjalee.bs.com.control.model.Weapon;
import vanjalee.bs.com.control.model.WeaponType;

public class DataController {

	private List<Weapon> weaponsCloseCombat;
	private List<Weapon> weaponsMainCannon;
	private List<Weapon> weaponsSubGun;
	private List<Weapon> weaponsLongRange;

	private List<Part> partsEngine;
	private List<Part> partsHull;
	private List<Part> partsSail;
	private List<Part> partsFigurehead;
	private List<Part> partsStabilizer;

	ImportExportController importExportController = new ImportExportController();

	public DataController() {
		this.weaponsCloseCombat = importExportController
				.importWeapons(WeaponType.CLOSE_COMBAT);
		this.weaponsMainCannon = importExportController
				.importWeapons(WeaponType.MAIN_CANNON);
		this.weaponsSubGun = importExportController
				.importWeapons(WeaponType.SUBGUN);
		this.weaponsLongRange = importExportController
				.importWeapons(WeaponType.LONG_RANGE);
		this.partsEngine = importExportController.importParts(PartType.ENGINE);
		this.partsHull = importExportController.importParts(PartType.HULL);
		this.partsSail = importExportController.importParts(PartType.SAIL);
		this.partsFigurehead = importExportController
				.importParts(PartType.FIGUREHEAD);
		this.partsStabilizer = importExportController
				.importParts(PartType.STABILIZER);
	}

	public List<Weapon> getWeaponsCloseCombat() {
		return weaponsCloseCombat;
	}

	public void setWeaponsCloseCombat(List<Weapon> weaponsCloseCombat) {
		this.weaponsCloseCombat = weaponsCloseCombat;
	}

	public List<Weapon> getWeaponsMainCannon() {
		return weaponsMainCannon;
	}

	public void setWeaponsMainCannon(List<Weapon> weaponsMainCannon) {
		this.weaponsMainCannon = weaponsMainCannon;
	}

	public List<Weapon> getWeaponsSubGun() {
		return weaponsSubGun;
	}

	public void setWeaponsSubGun(List<Weapon> weaponsSubGun) {
		this.weaponsSubGun = weaponsSubGun;
	}

	public List<Weapon> getWeaponsLongRange() {
		return weaponsLongRange;
	}

	public void setWeaponsLongRange(List<Weapon> weaponsLongRange) {
		this.weaponsLongRange = weaponsLongRange;
	}

	public List<Part> getPartsEngine() {
		return partsEngine;
	}

	public void setPartsEngine(List<Part> partsEngine) {
		this.partsEngine = partsEngine;
	}

	public List<Part> getPartsHull() {
		return partsHull;
	}

	public void setPartsHull(List<Part> partsHull) {
		this.partsHull = partsHull;
	}

	public List<Part> getPartsSail() {
		return partsSail;
	}

	public void setPartsSail(List<Part> partsSail) {
		this.partsSail = partsSail;
	}

	public List<Part> getPartsFigurehead() {
		return partsFigurehead;
	}

	public void setPartsFigurehead(List<Part> partsFigurehead) {
		this.partsFigurehead = partsFigurehead;
	}

	public List<Part> getPartsStabilizer() {
		return partsStabilizer;
	}

	public void setPartsStabilizer(List<Part> partsStabilizer) {
		this.partsStabilizer = partsStabilizer;
	}

}
